package com.cloud.consul.comsumer.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

import com.cloud.consul.comsumer.hystrix.FeignHelloHystrix;

/**
 * @author Thinker
 * 加入熔断的远程方法调用
 */
//@FeignClient("spring-cloud-consul-producer")
@FeignClient(name="spring-cloud-consul-producer",fallback = FeignHelloHystrix.class)
public interface FeignHelloService {
	/**
	 * @return
	 */
	@RequestMapping("/hello")
	public String hello();
	
	@RequestMapping("/t1/test")
	public String test();
}
